Efficient Boundary Values Generation in General Metric Spaces for Software Component Testing
نویسندگان
چکیده
One of the most classical and successful software testing strategies is that of testing boundary values in the input domain (Reid 1997). In this paper we introduce a notion of boundary values for a finite subset of a metric space. Boundary values are distinguished between nucleus (central elements) and perimeter ( peripheral elements). Nucleus (resp. perimeter) elements are those objects whose average distance from any other element in the subset is much smaller (resp. larger) than the average pairwise distance among elements of the subset. We propose efficient approximate algorithms that for any k generate both k nucleus and perimeter elements. Since relevant applications involve metric spaces of complex objects (e.g. large trees or graphs, long strings such as biosequences, high dimensional Euclidean spaces) whose pairwise distance calculation is heavy, then efficiency of such algorithms is very much affected by the number of distance calculations among objects of the subspace. Computing the exact k minimal elements in the nucleus and the k maximal elements in the perimeter requires an obvious quadratic solution in the size of the input set. However even a quadratic algorithm can be prohibitive due to a sufficiently large size of the input domain. Our approximate algorithms run in O(kn) time. Therefore since in software testing the size n of the input domain is much larger than the test size k then the quadratic brute force exact algorithm may become infeasible while our test generation algorithms may be successfully used.
منابع مشابه
LINEAR HYPOTHESIS TESTING USING DLR METRIC
Several practical problems of hypotheses testing can be under a general linear model analysis of variance which would be examined. In analysis of variance, when the response random variable Y , has linear relationship with several random variables X, another important model as analysis of covariance can be used. In this paper, assuming that Y is fuzzy and using DLR metric, a method for testing ...
متن کاملExistence and uniqueness of the solution for a general system of operator equations in $b-$metric spaces endowed with a graph
The purpose of this paper is to present some coupled fixed point results on a metric space endowed with two $b$-metrics. We shall apply a fixed point theorem for an appropriate operator on the Cartesian product of the given spaces endowed with directed graphs. Data dependence, well-posedness and Ulam-Hyers stability are also studied. The results obtained here will be applied to prove the existe...
متن کامل$S$-metric and fixed point theorem
In this paper, we prove a general fixed point theorem in $textrm{S}$-metric spaces for maps satisfying an implicit relation on complete metric spaces. As applications, we get many analogues of fixed point theorems in metric spaces for $textrm{S}$-metric spaces.
متن کاملFixed point theorems under weakly contractive conditions via auxiliary functions in ordered $G$-metric spaces
We present some fixed point results for a single mapping and a pair of compatible mappings via auxiliary functions which satisfy a generalized weakly contractive condition in partially ordered complete $G$-metric spaces. Some examples are furnished to illustrate the useability of our main results. At the end, an application is presented to the study of exi...
متن کاملOn the fixed point theorems in generalized weakly contractive mappings on partial metric spaces
In this paper, we prove a fixed point theorem for a pair of generalized weakly contractive mappings in complete partial metric spaces. The theorems presented are generalizations of very recent fixed point theorems due to Abdeljawad, Karapinar and Tas. To emphasize the very general nature of these results, we illustrate an example.
متن کامل